package com.jy.api.dao;

import com.jy.api.domain.StoreProfile;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by hanxi on 2017/10/23.
 */
public interface StoreProfileDao extends CrudRepository<StoreProfile, String> {
    StoreProfile findByStoreId(String storeId);


    Page<StoreProfile> findByEnabledOrderByStatusDesc(boolean enabled, Pageable pageable);

    List<StoreProfile> findByStoreIdIn(List<String> ids);
}
